package com.jintoufs.service.category;

import com.jintoufs.dao.QueryFilters;
import com.jintoufs.domain.category.Category;
import com.jintoufs.util.ztree.TreeNode;

import java.util.List;
import java.util.Map;

/**
 * Created by administrator on 2017/12/25.
 */
public interface CategoryService {
    int deleteByPrimaryKey(Integer id);

    int insert(Category record);

    int insertSelective(Category record);

    Category selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);

    List<Category> queryByParams(Map map);

    List<Category> queryByParam(Map map);


    Map<String, Object> save(Category category);

    /**
     * 删除
     */
    void delete(Integer id);

    List<Category> getByFilter(QueryFilters filters);

    //类别明细
    Category getById(Integer id);

    List<Object> getResourceTreeList(List<Category> entity);

    List<TreeNode> getModuleTree(Category region);


}
